package bmcsoft.test.collection;
import java.io.*;
import java.util.*;
public class CCC {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\Alan\\Desktop\\A Lifelong Career.txt"));
        String tmp;
        ArrayList<String> al = new ArrayList<String>();//存储读进的单词列表
        while((tmp = br.readLine()) != null) {//依次读取
            al.add(tmp);//存进ArrayList
        }
        Collections.sort(al);//对ArrayList的内容进行排序
        System.out.println(al);
    }
}